If in the beginning
But, of course, if does not calm down and everything cries more strongly, you should get up.
But try to do the same in a month.
After months if there is an opportunity, place the child to the certain room.
The child since the birth can sleep in the certain room if it is convenient to you and if you is rather close to hear its crying.
If in the beginning its bed is in the room of parents, at month age it is desirable to move the child to other room.
I would not recommend to leave the child for the night in the room of parents after months..