CNA 's should not give any medications to the patient , yet, if certified they can assist the patient in self administering the medication. Even when certified, the medication should be pre-measured and given to them by a nurse or doctor. This sounds like the situation you have described and is OK.
Medical Assistants, who have more educaiotn than the CNA, can give shots under supervision of an on-duty doctor. An IV may only be administered by a nurse or a doctor.