Hello there and welcome to BYC!
Yes, heat will effect laying. What happens is the hens don't eat enough layer feed, which is high in protein. Not enough protein and they don't release yolks. Over heating and dehydration will slow the egg machines down.
BUT...so will illness or things like...