Yes ricotta cheese can be frozen for up to 2 months.
When freezing ricotta cheese just be aware that while the ricotta cheese can be frozen that the texture and taste of the ricotta cheese can change.
The ricotta cheese will remain safe to eat but it may not taste as good.
I would only freeze cheese such as ricotta cheese or any other cheese if I were just using the ricotta cheese or other cheese for cooking.
When cooking with ricotta cheese or any other frozen cheese you won't notice the texture or taste change.
But even if you don't cook with the cheese it's still okay to freeze it.