Yes. Turning on the AC while parked generally won't cause harm to your engine, so long as the cooling fans work. Modern cars are designed to run all day, even with the AC on.