yes it is,
when i was really depressed as well, i had periods thinking i was gay...
what you have to remember is that they are just thoughts, i had the most horrendous thoughts that i obsessed about....
but they eventually went, i think its just the way the mind works, and to reassure yourself you're not gay you think about it more...