It depends on the filling. While fillings like chocolates and cream cheese can hold up to being baked, others will change during the baking process or will disintegrate entirely. If in doubt, add them after baking.