During the initial placement, you are allowed to place a settlement on any open intersection (as constrained by the proximity restrictions), so you are allowed to place on coastal intersections, so placing on a harbour is a legitimate placement for a settlement during setup.