Query on iPhone 3G and Wi-Fi Service

I have iPhone 4 and I just want to ask something about it. If I lost my iPhone, will I be able to locate it if there is a 3G service available to the place where my iPhone will be? Or will this feature only work when there is a Wi-Fi connection on the area? Can someone please tell me? Thanks.
