Hello Ali,
It's possible, but there are many variables.
Is your internet connection fast enough?
Does your internet connection ever slow down?
cable internet, and wireless internet can fluctuate sometimes
Is your hardware sufficient?
If you can, play the game offline, if it still freezes then try turning down resolution and other video settings. If you can't play offline, still try turning down video settings
There are a few suggestions/questions, be sure to post back with your results.