Definitely okay. You're not there to impress anyone on the plane. What I did on my long plane flight was wear leggings, flip flops and a t shirt and put a change of clothes in my carry on bag and changed at the airport when I got off the flight so I wouldn't be walking around in those clothes until I got to the hotel.