Doubt about binary regression in spss

#1
Hello eveybody,
I have a little doubt concerning these results:
If I indicate X as a variable with categories:
1584100093300.png
I get this result:
1584099916958.png
However if I do not specify X as a categorical covariate, the result is not the same:
1584100208571.png
1584100289122.png
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