10 yo Yamaha/Honda 125CC safe?

I'm wide aware how reliable japanes bikes are but I wanted to check if buying ruffly a 10 year old bike for my first is still relatively safe if it's properly maintained throughout the years.

My main goal is to commute in London for a year on a A1-2 license (28M) so that I'll upgrade down the line and staying in budget..