Yes, you can.
Make sure you're getting enough protein, fat, and vegetables in during your meals -- don't skip those things in order to have fruit. And if you have a sweet tooth and would like to change your habits around having or craving sweets, you'd want to really consider whether this is the best way to do that.