Yes, that should be fine, but bear in mind that cream cheese has a sharper, subtle cheese taste whereas mascarpone is more or less triple cream, and thus milder. If you want that sharp taste, perhaps add just a little lemon juice with your mascarpone.