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.
when you start up your game, DO NOT go onto your save file, instead, select "Mystery Gift."
Select the way you need to receive your Pokemon, in this case, select "Receive Via Internet." (Or something like that.)
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!