I think it matters.
Did you know your body and brain doesn’t finish developing until your 25?
Unless you have a very clear identity and know what you want- your likely to change- unlike someone in their mid 20’s.
Also ppl in the mid 20’s have lived more and have matured. I know a couple that met when she was 15 and he was 23. Now shes 22 and they are married but its been hard on them both.
I think if the age gap happens in your early 20’s onwards- its fine- cuz you have stopped growing and you know what you want.
Theres a 3.5 year old gap between me and my hubby. We have been together since I was 15, but I was very careful not to rush into anything as I knew I was young.
we were together 3 years b4we got engaged and together another two after that b4 we got married.
Good luck