The anesthesia itself would not cause the problem. Intramuscular injections can cause soreness and the length of time you have you mouth open certainly will have an effect.
There are no real effects of the anesthesia. The needle goes through muscle (depending on the type of injection), so you end up with what amounts to muscle pain. Keeping your mouth open for long periods of time can also add to the discomfort after dental appointments.