Letter of Recommendation from PI you didn't take a class with?

Hello, I've been working in my PI's lab for two and a half years. Wondering if it's okay to get a LOR from him even if I've never taken a class with him. He teaches mainly graduate courses, and I didn't want to risk my grade. Thanks!
Source: Student Doctor Network - Category: Universities & Medical Training Authors: Source Type: forums