No, Tom Nook and Mabel can't get married in Animal Crossing. Whoever told you otherwise was mistaken—it's not a feature in the game.
The characters remain part of your town's cast without any marriage mechanics, so you can enjoy their interactions but not that particular storyline.