Well I was 44 when I had our DS (our first and only).
I see some of the parents who twenty years younger who are absolutely awful parents and I see some of them who are absolutely brilliant.
I know of some of his friends parents who literally used the TV to bring them up, who rarely went to parent and baby groups, whose kids spend the days gaming at the moment. The fact the kids are doing well seems more a lot of luck than any work by the mum or dad.
Then I see those of similar ages who took their kids out for hikes across fields and beaches every day during the first lockdown, who oversaw all their school work and seem to enjoy their kids being around.
The point is that, 24 or 44, doesn't guarantee energy levels, interest or care. Those things come from inside. I didn't find it easy being an older mum in the early days but I made damn sure DS didn't suffer because of it. He went to every kiddy club, every event, every invitation to the park even if I didn't feel up to it. I probably put in more effort to ensure my energy levels didn't impact on him and I had more time because we were financially secure so I didn't have to work and I'd got to the top as far as my particular career was concerned. In fact I then started my own business - something I couldn't have down even 10 years before that as I didn't have the time or money.
And his dad, who was 50 when he was born, has taken him swimming every weekend, off to cinema visits, football matches, drama clubs and after school things in just the same way as the younger dads (more in some cases).
That boy knows he is loved, that we're proud of him, that we are interested in his views and take them on board and that we will support him in everything he wants to do and that is all that matters.
I hope your friend ignores the petty comments and that she has a wonderful pregnancy with many years of watching her child grow. None of us know what's around the corner. As my mum was almost 91 when she died I'm hoping I'll get my son to his late 40s before I have to say goodbye though!