Tiberius is right. Allow me to explain further. If you have a combat unit in one system, and a fleet in another, you can select the combat unit, right click on the fleet, and the combat unit will phase jump to the fleet's current gravity well. It will then auto-join the fleet if it has auto-join fleet behavior enabled.
If the combat unit is in the same system as the fleet and you do the same as before, the combat unit will instead move to the flagship. It will follow the flagship wherever it goes, but will not be an official part of the fleet. I think it will still act as part of the fleet, though. Just if you click on the fleet icon, the combat unit won't be selected. Is that right, Tiberius?