Nope, it works for anything. You don't have to anthropomorphize a boat to call it "she". Countries are also referred to as women in general. But these are all just defaults. You can use masculine pronouns for any object, boat, or country, if you want to emphasize some masculine traits.