Yes! You basically took the joint beyond a 'physiological range of motion'! You could have some serious damage but in the meantime,ice,elevate,see your Dr.
Depending on the severity of the injury, treatment can range from applying ice, over the counter pain relievers, and knee braces or wraps. Sometimes physical therapy and surgery is necessary.