Yes, but imo it would be more clear that it is a boolean function.