We know that unstressed O sounds like A and unstressed E sounds like И.

My question is does this situation occurs on the syllables before the stressed one or into the whole word?

and second, are they any exceptions in that rule?