Yes! Grammatically you can, yay! :D... I'm not sure about the DuoLingo test though.
On the "yes japan" forums:
Japanese teacher and native Kanako says, "Please note that it sounds too polite and it sounds more natural to make the first part of the sentence informal."