Is it ok to take atenolol and benazepril?

Yes. Provided you are taking them for the right reason. Discuss the purpose of these medicines with your physician.