Reversing Order of Logistic Loss Function

If I reverse this Loss Function, which means I use -log(f(x[i])) for y[i] = 0 and -log(1 - f(x[i])) for y[i] = 1. Will I still get the same value of J(w,b) at some values of w and b?

Just asking this so I can get the intuition right…

Intuition isn’t necessary. You can plug in some values and explore it for yourself.