I am not a medical doctor. The content here is simply a culmination of my experience communicating with literally thousands of anal itching sufferers over the past several years. Many people refer to this as rectal itching but the rectum is actually the mucous membrane at the end of the colon located about 2 inches 5 cm inside the opening of the anus. Anal and rectal are NOT the same. The answer to this question is yes, but just the inner rim. The FDA regulates drugs in the US and they differentiate drugs that can or cannot be used internally for that very reason.
The Best Home Remedy for Treating Chronic Anal Itching - Pranicura LLC
Anal itching—known medically as pruritus ani —is generally regarded by physicians as a simple problem that home remedies can alleviate. Itching, often intense, that may be persistent or may occur only after a bowel movement Redness, irritation, soreness and burning in the skin around the anus. The majority of cases are caused by skin irritation from fecal soilage. In older people, or in anybody with diarrhea, seepage of fecal matter may occur. Also, as people grow older, anal skin becomes more irregular and harder to clean. People with hemorrhoids which may trap small fecal particles are more prone to itching.
Anal itching: Causes, treatments, and home remedies
Your doctor may be able to diagnose the cause of your itching simply by asking you questions about your symptoms, medical history and personal care habits. If pinworms are suspected, your doctor may suggest doing a test for pinworms. You may also need a physical exam, including a digital rectal exam.