Depending on the type, you should be good. I'd reccomend kernmantle rope, it's strong, not excessively dense, and smooth. All the traits a noose / slipknot needs to help ensure success.
There's a megathread on this topic.
https://sanctioned-suicide.net/threads/how-to-hang-yourself.1183