Yes, you can. And you even can take the S-Bahn which is cheaper, quicker and will make you more familiar with Frankfurt directly to Hauptwache into the heart of the city. 12 minutes.... 1 1/2 hour is certainly sufficient. I normally arrive one our ahead of my flight and still need to check in. However, what you can do is a search. You are not the first member to ask these questions.