It's theoretically possible. Therefore a used coop should be thoroughly cleaned and disinfected.
If the coop has been empty a long time the risk is low.
Welcome to BYC.
Rules of Thumb
If it looks like a dollhouse it's only suitable for toy chickens.
If it's measured in inches instead of feet it's too small.
If your walk-in closet is larger than the coop-run combo you're thinking of buying think carefully about whether you have an utterly...