Can you open a garage door with a universal TV remote?

Even if you matched the code, the problem is that tv remotes use an infrared signal, which is very sensitive to direction and easily blocked by walls, doors, etc.