@Azelfeo, Yup.
@Let me make my question description more clear: I clicked "Summary" while the game was asking me where I wanted to put Necrozma. When I put it in the PC, it said: "Would you like to take Ultranecrozium?", I took it, and then, my trainer automatically took the Z-Crystal on the ground.