Can you still use your iphone 4 with Wi-Fi even if it's not activated?

I was wondering if I cancelled my contract, could I still be able to use my iphone with Wi-Fi?

Yeah, but you'd have to be near Wi-Fi all the time.

You won't be able to make calls, but you could send text messages as long as the other person has an iphone and its going through imessage.

Yea I think so