Through the way I'm understanding what you have said, yes, that is the way, but I'll give a guide just in case I'm not understanding what you have said correctly.
Step One:
when you start up your game, DO NOT go onto your save file, instead, select "Mystery Gift."
Step Two:
Select the way you need to receive your Pokemon, in this case, select "Receive Via Internet." (Or something like that.)
Step 3:
After receiving your Pokemon, start up your game and got to any Pokemon center, make sure you have an empty slot in your party. Once you have an empty slot in your party, talk the the delivery girl, she should give you your Pokemon.
Hope this helps!
Source