Yes you can.
Download and install iTunes on your computer. Connect your iPhone 4 to your computer and it will get rid of the initial screen. You can then activate your WiFi and connect to your router. With WiFi connected you can use Safari to jailbreak your phone.