They are all correct, but using 'can' here is a little unusual, because you then say if liking something is in this persons power, as if he would be a robot. It is grammatically correct, but if you use these sentences in speech you can use may instead of can to make ik more natural.