When there are ties the teams replays the game a week later
In some Cup tournaments, yes. Not in most leagues.
In England’s FA Cup, there are replays and in the event of a second draw, penalties decide the outcome. In smaller cup competitions, sometimes it goes right to penalties.
Most domestic leagues still allow draws because the schedule congestion would be too great to allow replay of every tied game.