Yes. Sounds like a great opportunity to learn about how to lead a team. It's harder to get good results from a bad team, obviously, so if you can pull it off, it means you are doing something right.
However, be careful: if you think of your team as mediocre, you are not likely to be a good leader. I'm sure you have heard all the caricatures about bad managers. Don't be one of them. Educate, persuade. Don't dictate. Don't blame. It's a hard job, but possibly a transformational experience for you.