No, there's no need to limit yourself to only buying a .com domain. With so many different domain extensions out there, it's perfectly fine to buy a different one depending on your needs. Your customers will still be able to find you no matter what extension you choose, as long as you've registered the domain and set up hosting for it.