No, Cocaine is classified as a Schedule II drug in the United States under the Controlled Substances Act. This means that it has a high potential for abuse but also has some accepted medical uses. In very rare cases, cocaine can be used as a local anesthetic, particularly in some eye, nose, and throat surgeries. However, its use in medical settings is extremely limited and highly regulated.
In practice, it's highly unlikely that an individual would be given a prescription for cocaine to take home or use outside of a highly controlled medical environment. There are alternative medications and anesthetics that are safer and more commonly used for medical purposes.
In other countries, laws and regulations regarding cocaine may vary, but it is generally heavily restricted due to its high potential for abuse and addiction.
Always follow the laws and regulations regarding controlled substances in your jurisdiction and consult a healthcare professional for information and advice regarding medications and treatments.