Fast answer is, yes, you are able to restore to stock. However, don't expect someone to type out the instructions in this thread. They're all well documented. Spend an hour or two of research learning. Get an understanding of fastboot and ADB, and then come back with relevant questions.
Sent from my HTC One using Tapatalk now Free
Current - HTC One - TrickDroid 5.6 | Nexus 7 16gb
Backup - HTC One XL - ViperXL
Retired - Atrix 4G - GSM Galaxy Nexus - Nook Tablet - Samsung Galaxy Tab 7 - iPhone4 - iPhone3GS - Blackberry Curve - AT&T (HTC) Tilt