Yes. There are tons of self learning courses and tools available on the internet. In addition, you can go visit a local library and teach yourself beginners’ Farsi. There is a mobile app available by the name of ‘FastDic’ that you can install and get a jump start on your Farsi vocabulary.
That said, even if you don’t bother to learn Farsi before coming to Qom, the Islamic Seminary does a very good job through its Farsi language course at teaching you Farsi within a few months. So, don’t worry.