It's best not to smoke if you have an open cavity or have had an extraction ,other than that you shouldn't have a problem.
One thing all people visiting the dentist should know is that cannabis interferes with the novocaine making it less effective.