Of course, you can! Raw/green apples will taste comparatively sour. If you are a fan of sour taste, then raw/green apple is a way to go. You may want to use a little bit of extra sugar (1/2 to 1 tablespoon) to balance out the sour taste of the apple.