Actually it can affect baby. Because if you don't get any sleep your body suffers and can cause issues with blood pressure and many other things, which in turn affect baby. Take some benadryl or tylenol pm (check with doc first of course) and try to get some sleep. If that doesn't work ask your doc for a prescription.
Nope, it only affects you. Your baby will move and sleep on his/her own terms. But I am sure you are very tired. They have tylenol PM you can take or.even benedryll for you to fall asleep. Try that.