It could mean that, yes, or it could mean that you do find these guy friends at work attractive and friendly and want to have relationships with them.
Sexual orientation is fluid. It ebbs and flows and takes turns that sometimes we don't expect, and it can be scary and confusing when it does. But do know that sometimes we can be attracted to people and not have any idea how it happened.
Yes, you could be remembering that you've had bad experiences with girls recently and that you don't want to deal with girls right now. And that's all right, just like it would be all right if there wasn't any reason for it. But the main thing here, it seems like, is that until you deal with those bad experiences, you won't make a dedicated partner to someone else. It's awful that these girls are still "constantly causing me problems and hurting me emotionally"--is there any way you can make a clean break from them?
It's possible you are trying to distract yourself from getting away from these past relationships by getting into another one, and if that happens to be with a guy or a girl, so be it. Does this make sense to you? The most important thing is that you don't get involved with someone for the wrong reasons (e.g., they aren't a girl and girls have hurt you before) and that you don't let things that shouldn't stop you from pursuing relationships (like that someone happens to be a guy). Be in (or out of) a relationship because of how you feel about someone, not because of their gender.
I hope this helps clarify things a bit, and doesn't muck them up further.
"And when the answer that you want/Is in the question that you state/Come what may..." - Coheed and Cambria, "Blood Red Summer"