Yes, a resume can be two pages. If you have 10+ years of experience in your industry or an exceptional amount of relevant skills and accomplishments, it’s okay to write a two-page resume.
However, for entry to mid-level candidates, a one-page resume is best for most job applications.