Sure can. I can get grants specifically to hire someone. As long as that's specified in the grant, and I can prove that's what I did with the money, there's no issue. Non-profit in this circumstance, rather than education.
I believe it's a pretty common thing to do to use (some of the) grant money to "buy your time back" from the university (where the expectation would otherwise be that you do 100% teaching).