Are managers allowed to not let you transfer to a different department if they don’t have anyone to replace you to take your position?

Are managers allowed to not let you transfer to a different department if they don’t have anyone to replace you to take your position?
Post Opinion