Yes, if the user has a role that includes the preview role, the grade will not be recorded.
In reply to Emma Richardson
Re: Quiz Completed but not showing in grades - Moodle 2.9
by Dave Emsley -
Yep that was it. Thanks