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.
•Soft, processed cheeses: garlic and herb roulade, cottage cheese, cream cheese, feta, goat's cheese without a white rind, mascarpone, mozzarella, processed cheese (such as cheese spread and cheese segments), quark, ricotta.
•Yoghurts, probiotic drinks, fromage frais, soured cream and creme fraiche are all safe to eat. These include any variety, including natural, flavoured and live versions.
Unsafe cheeses in pregnancy
•Mould-ripened soft cheeses: brie, blue brie, cambozola, camembert, chaumes, chevre (goat's cheese with a white rind), pont l'eveque, taleggio, vacherin-fribourgeois.
•Blue-veined cheeses: bergader, bleu d'auvergne, blue wensleydale, shropshire blue, danish blue, dolcelatte, gorgonzola, roncal, roquefort, stilton, tomme.
•Soft, unpasteurised cheese, including goat's and sheep's cheeses: chabichou, pyramide, torta del cesar.
It better be because ive eaten a lot of it lol...its ok because its made with cream cheese usually...there are places who make it with other cheese but typically they let you know if it is.