Is it safe to drink prune juice

Is it safe to drink prune juice while pregnant I've been having trouble using the bathroom