The term "a little shy" can mean so many different things. Sometimes it means a person is concerned primarily with their own self, and gives little thought to others, which is a kind of unhealthy selfishness; other times it means they WANT to be involved in other people's lives, but they have low self esteem (perhaps their parents or older siblings criticized them a lot growing up), so they don't even try to engage groups of people socially for fear of rejection; for others, "a little shy" can just mean they do fine with groups when they have to, but prefer to be in a calm place with a book, and maybe 2-3 friends.
So, being "a little shy" might be fine with being an Officer, or it might be an irreconcilable hurdle... depends on what you mean by "a little shy", and what causes the shyness. There IS such a thing as quiet Leadership, but it is not very common.
"I have trouble making friends". This is more concerning to me than being "a little shy". Again, it depends a lot on WHY you have trouble, but if you don't have at least 2-3 close friends who know just about everything about your strengths, weaknesses, preferences, what makes you happy, what you're afraid of, what makes you mad, etc, then that needs a close examination. Being an officer requires being good at following command, and giving command, in groups of people. It isn't necessary that any of them be your "friend", but leadership requires engaging groups of people, or many, many people 1 at a time throughout the day, every day. If this is counter to what charges your batteries, so to speak, then being an Officer may not be a good fit for you in terms of career. There are lots and lots of jobs that require solo work, like research, some types of accounting, etc.