It is better to use may in an affirmative clause: She may have been ill. Can is common in negative clauses: She can 't have been ill. (= It is highly unlikely that she was ill.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.