No, closet rods tend to hold a lot of weight, so you need to mount the brackets in studs. Use a stud finder to identify the locations of your studs.