It is incredibly unlikely that, when sedated or under general anaesthetic, you would become aware of what is happening. However, if you were to retain any memory of the experience, it would not be negative, as you will not feel any pain and there will be staff on hand to sooth and reassure you.