It is not considered appropriate to wear pajamas in public, as they are a part of intimate clothing. This said, there are ranges of modern loungewear that are meant as day wear too. It is important to distinguish between the two.