can I wear leggings on a federation passenger starship

@RikerGoogling@mas.to

can I wear leggings on a federation passenger starship