Yes, you can just put years on your resume. Leaving the exact months you were employed off of your resume’s work experience section is an acceptable way to downplay a gap in your work history and make your experience appear more consistent.
However, don’t imply you worked somewhere for a year when you only worked there a month. If employers think you’re lying on your resume, they won’t hire you.