Can I wear pajama to pray in? It’s like a one piece pajama cover all not a dress. Is that ok?

It must be like hijab, ie loose and not see through and covers all body.