I wouldn't because the moisture in the raspberries will effect the ratio of wet to dry ingredients and will likely cause the cake not to rise.