Is It possible for pinworms to live in hard constipation stools? Or are they only present in soft runny stool?

Any stools. Pinworms are not particular about the quality of the stool. They live equally in hard and soft stool. Treat as necessary. All the best.