How long should I ride? I am 24/Male and I have been riding since a year. Recently endurance riding has interested me. I have done two rides of 20 km each. Now I am planning for a 46 km ride.l My question is, should I go for it? or should I do some more 20 km rides?
Go for it - you're young and riding over the last year will give you an idea of your capabilities.

Do make sure your bike is maintained - having a mechanical is no fun.  Take your spares/tools and food and water.

If the distance is challenging, think of it as an "out and back" which is each-way only 3 km longer than your normal rides.  It becomes two rides in one day, with a bit of a rest at the half way.  For me, there's a nice pie shop about 60 km away, so that's two rides with a 30 minute light-lunch stop in the middle.

Pacing is good, don't go too hard out in the first half.  But the rest at the half way will help a lot and the ride home will always feel shorter than the ride out.

You'll never find out what you're capable of if you keep doing the same trips and distances.  Extend yourself and push some limits.