Yes, you can cook the sweet potatoes with their skin on. The mashed potatoes won't be as silky smooth and will have more of a rustic feel to them.