That is how the US organizes its two navies, but that doesn't means that all countries need to have two different navies - most don't, they just have a coast guard, with enough ships that could cross the ocean to put on a show of having that ability, but in practice those ships stay in port all the time.