So sorry you are here and that you are hurting.
It is okay to love him and hate him at the same time. It is normal.
Can you work through this? Yes, you can but it takes two people truly vested in making it work.
It takes a lot of soul searching and hard work to figure out where your relationship was prior to the affair, where it currently is and where you want it to be going forward.
Your bf also needs to understand why and how he allowed himself to cheat. He has to understand how wrong it was and do the work necessary to ensure he won't go down that path again.
IC is recommended for you both to figure some of these things out.
It is a long road but one you can make it through.
TIME - the answer is time. On average it takes 2-5 years to recover from an affair. And even then the scars are still with you.
Good luck and take care of your baby. One day at a time.