Yep
Usually people sleep with their piercings on during the first week or so after they put them on, just so that the holes don't close, but after that it may take from a week to a few months for them to fully close, so they can take them off at night to sleep more comfortably.