The major downfall with using storebought cookie dough is that it has eggs in the batter. I don’t know if the cookie dough gets baked all the way through in this cheesecake recipe like it would if you were baking cookies. Having said that, the cheesecake IS baked so maybe the cookie dough bakes enough to get rid of the risk of salmonella. In this case, use your best judgment!