Another Harry Potter Character Comes Out?

David Thewlis, who plays Professor Lupin in the Harry Potter movies, says he plays his character as a "gay junkie." Are these characters' sexual orientations decided arbitrarily by the Sorting Hat or something? At least Dumbledore has a date now!