Generally a switch will not send a packet to a connected host when it starts (and there can be exceptions depending on what is configured on the switch). It will only learn the MAC address(es) that are down an interface when the device(s) send a single packet into the switch.
Devices do normally send packets when they start or when the interface becomes active, but not always.
If a remote device tries to send a packet to the local device by its IP address, the first packet issued should be an ARP request (which is flooded to all switch ports) and the local device should respond to this. When it does, the switch will learn the MAC address.
However, if a device has a configured static IP (or other type of) address and neither generates a packet nor responds to a packet sent to it, then the switch will never learn the MAC address. This would be unusual but not impossible behaviour.