Instantiate a prefab and follow player position in runtime?

Hello UnityCommunity!,

It’s possible to instantiate a prefab in player position and follow his movements?

I’m actually instantiating a prefab in player position with transform variables but I don’t know how can I make prefab follows player, it’s posible to instantiate prefab inside the player as a parent?

prefab.transform.parent = player.transform