Definitely not! Dysmenorrhea is period pain that occurs regularly and is not associated with another underlying condition. Many women experience this with their periods and the intensity of the pain varies.
Endometriosis, on the other hand, is a condition that has a variety of symptoms, and painful periods is just one of them. This article might help explain the differences even more: https://endometriosis.net/symptoms/period-pain/