So if you are able to run a direct wired Ethernet connection to the neighbors primary Wifi Router, then this is possible (and will be the best way; but there are problems with this method).
A wireless/Wifi connection between you and neighbors Internet connection is also possible, but depending on how the wireless connection is done will determine how good the connection will perform.