yes ambient temp affects pc temp's.
The affect is bigger the closer the temps are to ambient levels.
So e.g. under idle my gpu can go from say 29-30C up to 35C on a hot july day.
But the load temp wont move by the same amount so the load temp might go e.g. from 65C to 67C.