Doubt about binary regression in spss

Hello eveybody,
I have a little doubt concerning these results:
If I indicate X as a variable with categories:
I get this result:
However if I do not specify X as a categorical covariate, the result is not the same:
Can these different results be due to the fact that male gender is indicated as 0? Is it the case, the correct answer would be :log (odds) = -0.182 + 0.785(Gender 1), right?
I do not know if my question is clear

Thank you for your time