Can I change my daughters last name?

My boyfriend and I got pregnant at 18. She's now 4 months old and he left us. We decided when she was born that she would gethis last name. Now that she has his last name, and we broke up, am I allowed to change her last name to mine? We were never married.. but she has his last name its on her birth certificate