Yes. Rapiers are one-handed weapons, so you can hold a shield with your other hand to give you an extra +2 AC bonus.