It is generally recommended to hang pictures and shelves on studs whenever possible, especially if the object is heavy. This will help ensure that the object is securely supported and will not fall off the wall.