If its a baked cheesecake then its no problem. Usually they use soft cheese or mascarpone which is ok. I just found this on the internet....
Safe cheeses in pregnancy
•Hard cheeses: smoked versions, caerphilly, cheddar, cheshire, derby, double gloucester, edam, emmental, English goat's cheddar, feta, gouda, gruyere, halloumi, havarti, jarlsberg, lancashire, manchego, orkney, paneer, parmesan, pecorino (hard), provolone, red leicester.