While you never have to buy coins, it can make it easier if you are stuck at a certain level and can't defeat a zombie with the power boosts or flowers in your arsenal. Another option is to download HappyMod, so you can download and play a modded version of Plants vs. Zombies. This will give you unlimited free coins and the option of just skipping difficult levels.