Agreed. Or just ask the professor. If I were a professor I'd be ecstatic if someone wanted to sit in on a lecture just to learn, not for credits.
However I've also had great professors who would allow it because they feared the students wouldn't be fully committed since they weren't obligated to do assignments and exams.
However I've also had great professors who would allow it because they feared the students wouldn't be fully committed since they weren't obligated to do assignments and exams.