Not getting enough sleep effect the baby?

If im not getting 8 hours of sleep and then a nap or two through out the day when the baby is born will the baby be in the routine of my sleeping schedule and not sleep as much just because I didn't get either sleep when pregnant then have a colic baby?