If you are 10 and you like a boy how is 9 is that ok?

It's completely fine if you like a guy a year younger than you. You can develop crushes over people younger than you.