Yes. Any notation is allowed that we can understand. Writing "if a then b else c" instead of "(a?b:c)" or (a=>b|c)" is fine. But you also need to understand the notation used in the given problems (but you may ask at the beginning if there should be unclarities).