The 24-year-old, who lists Lincoln City and Scunthorpe United as his most recent clubs, has penned an initial one-year deal at The Jakemans Stadium.
Margetts, whose availability is subject to final FA ratification, began his career at Hull City and has had productive spells at a clutch of non-league clubs, predominantly on loan.