Is ricotta ok cooked - like baked in a canelloni?

Thanks again