Yes. On most passenger aircraft models, some cockpit windows can be opened. On the Airbus A320, for example, there are two windows that can be opened, one on the captain's side and one on the co-pilot's. The entire window assembly, including the frame, slides inwards.