attaching a mesh type or own mesh to a UStaticMeshComponent via code?

Hello …

Is there any way to attach a mesh to an UStaticMeshComponent using code?, for instance, i would like to attach myObject.fbx file as a mesh of my actor.

Thanks in advance.