It's possible, but unknown. Registering for the census was like standing in line at the DMV, probably, and took only a day's worth of work. It would seem they would want to get in and get out, maybe visit some family.
So the answer is most likely Mary gave birth soon after she arrived.