Are you doing partial or full hanging?
Where do you plan to tie the noose?
Edit: If it looks like a proper beam it probably won't give. Otherwise depending on the thickness and how it is mounted on, it'll probably work. I've read a couple of stuff about people hanging themselves in the closet using the closet rod.