Need to add only one channel to a page while creating through code

You should try to use the DraftPage entity instead of the Page and then when it is ready you will do a publish on the draft. Then also back office will be updated with the same content as you have publish.