If your iphone have a bad ESN can you connect to Wi-Fi and download like a ipod?

Because i saw that a iphone i want online has a bad ESN but will i still be able to connect to Wi-Fi and download games and more like song and just use it as a ipod cause i have a ipod well 2 but i want a iphone just to say i have one and i don't want to activate it so i don't care if the Esn is bad or not i just want to know if i can connect to Wi-Fi and stuff?

Yes it will work just like an ipod touch