Too soon for baby?

My boyfriend and I have been together two years! My love for him is unimaginable. We are having a baby and beyond happy!! I'm just wondering is two years too soon? I know it's never the perfect time to have a baby, but ideally. How long were you in a relationship before you had a baby?