I'm not sure how well it fits with MG expectations, especially if it's lower MG. MG tends to focus less on relationships than YA.
I wouldn't think anything of a character being gay, though. During middle school, kids often find out what sexual preference they have. From what I remember, though, it wasn't really until high school that people became known as gay. At least at my school.