This question should be simple in the concept that there's no age limit to making friends. Anyone can be friends with anyone if they are both wanting the friendship. There isn't an age limit here. That should be the case when it comes to anyone. Be friends with who you want to be friends with.
Of course you can make friends at 24! Any age is good to make friends. Well, you shouldn't choose people who are too young nor people who are too old (in relation to your age). I mean, you obviously shouldn't be friends with a 15 year old or with a 60 year old, for obvious reasons.
Why would there be a age limit on having a friend? Growing up i had friends of all ages , a few crushes that were younger than myself but it never led to anything cause I knew where to draw the line. Now i am older i would date legal age girl 18 and older. 💖 😜