It's fine. This kind of thing is done frequently, especially in informal spoken English. Note that it doesn't have to be an inanimate object, it can also be an organization or some other non-person entity.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.