Low octane

What does low octane do to your Mercedes engine? I have a p0170 and p0173 code for fuel trim. Is this related to the lower octane than recommend?