@don1990,
Yes. Grammatically correct, if that is what you're asking? And it may depend on the context, too. It seems a little awkward but acceptable.
So depending on the context also what might be alternatively correct is
"I thought that she might want me to stay."