Yes, a pulse oximeter can detect a heart attack and any other medical condition that affects a person's blood oxygen levels.