Can I use iPhone 3G if wi-fi isn't working?

Well my iPhone's Wi-Fi got broken or something and is now greyed out. I'm going to fix it later but for now I want to use my 3G and was wondering if it would work. Maybe they're two completely unrelated things and are able to work on their own, I don't know.

I can't imagine why you just don't try it instead of asking.