Can we create child game object of an other game object?

Hi,
I want to Instantiate a game object A as a child of game object B. Is it possible? Waiting your positive reply;
Thanks;

gameObjectB = (GameObject) Instantiate(gameObjectBPrefab);

gameObjectB.transform.parent = gameObjectA.transform;

thanks

this is what i need