Yeah, that's fine. The pre-requisites to enter a school have to be completed before you start dental school, not before you apply. And those two courses aren't the make it or break it courses either. You just want to demonstrate that you can handle the science courses before you apply, so that's why people tend to try to finish as many sciences as they can before applying.