Unpasteurized cheese COOKED into a lasagna?

Can I eat unpasteurized cheese if it’s cooked into a lasagna from a restaurant? I’m going to re-heat it at home too.