You can if you outline how the logic is applied to an apparatus. Example "Breathing status LED indicator" https://patents.google.com/patent/US6658577B2/en