No, it’s not ok to not include dates on a resume. Employers will require dates that you held each position in order to decide whether they want to bring you in for an interview or not.
Removing the exact months of employment from your resume’s work experience section is acceptable for roles a long time in the past (more than 10 years), but you will still need to include the years you held each position for.