If she was suffering depression or had feelings for you, she can easily take it the wrong way and feel unaccepted by you.
You've got to consider your relationship with that individual. Are you in a friendship relationship where you both understand your limitations of jokes and know when you're joking?