Actually, no. Einstein won the 1921 Nobel Prize in Physics for his explanation of the **photoelectric effect**, not for his theory of relativity.

The photoelectric effect work was important for the development of quantum theory. Interestingly, his theories of special and general relativity—arguably his most famous contributions—were considered too controversial or insufficiently verified experimentally at the time for the Nobel Committee to award the prize for them.
