If you have a 3-way line for regulation—team A, push, team B—only the result of regulation pays. So If you bet team A or team B to win but they are tied at the end of regulation, you would lose your bet. People who bet the push would win.
if you have a 2-way only line—team A, team B—the final result determines the payout. So whichever team wins the contest is the one that pays off.
Many books offer both 3-way and 2-way, as well as various puck line options (+ or - goals).
Take the time to read the wagering rules at your book. If you aren’t clear on what you are betting, don’t bet it until you have a full understanding. You owe that to yourself and your wallet. Good luck!