No, you do not need to buy a gift if you are not attending the baby shower. However, you may still wish to send a gift to the expectant parents to show your support and congratulations. Find out the origin of the term "baby shower" here.