Not necessarily. The TV rights can be sold separately from the movie rights as well as the animated rights, but a producer will usually buy them all up at the same time. That being said, according to
this article, Sony hasn't owned the TV rights to Spider-man since 2009, and
this article leaves it up in the air as to where the TV rights to the X-men lay though I would put my money on Fox. However, according to
this article, the animated rights to the X-men still lie with Marvel. This is why Marvel can produce straight-to-DVD movies using X-men characters without Fox being able to do anything.