You can absolutely use jam instead of frosting as the raspberry filling. Make sure to still pipe a border around the cake to ensure that your jam doesn’t ooze out.