Bismihi ta'ala
Yes, as long as the private parts are covered. However, it is important to observer utmost respect and reverence when in the presence of Almighty Allah, while praying, and wear appropriate clothing.
And Allah knows best
Shaykh Dr Zaid Alsalami is an Iraqi born scholar, raised in Australia. He obtained a BA from Al-Mustafa University, Qom, and an MA from the Islamic College in London. He also obtained a PhD from ANU, Canberra. He has written and translated several Islamic texts and also prepared educational videos on Islamic rulings and practices.