Yes ,you can have your portal server installed in a remote machine and develop portlets in another machine and later test it by deploying it on the remote machine.
For this you need to download the Portal 7.x plugin in netbeans and configure the remote server .For details steps ,follow the link
http://portalpack.netbeans.org/UG_portalpack_sunps7x.html