Frodo could never had parted with the ring if he wanted to. He had to much struggles with the power of the ring.
If gollem didn't do what he did, the ring wouldn't have been destroyed and who knows what would have happened then.
So no, not noble in the romantic "hero-slays-dragon" way, but in...