Yes, they'll die. You can resurrect them through a quest, but that can be expensive.
If you put your pet in your rancher (even if you don't price it) or your showroom, though, they won't starve. They won't age either, but if for some reason you have to go somewhere, you can store them and ensure that they live.