Yes, they have a fairly strict dress code - no bare legs (e.i shorts) or bare shoulders. We just came back from a trip to Italy and visited St Peter's and wore jeans and saw many of the other travelers dressing casually. The rules are the same for all churches in Rome including St.