Two units can never occupy the same space. So, if a unit is trying to attack and there's another unit in the sector its moving to, it will either fight (if it's an enemy) or stop (if it belongs to you or an ally).
Really, if a naval captain should be smart enough to steer around the ship, then you should be smart enough to set them in the correct order.
