By definition, the word context means: <em>"the circumstances that form the setting for an event, statement, or idea, and in terms of which it can be fully understood and assessed."</em>
So it does fit surrounding words, situation where the word is used, and also the sentence itself.