If you just mean physical appearance then yes you can change your sex through hormones and surgery.
If you mean DNA then no, most AMAB will all have a X and a Y chromosome in every one of their cells which would technically make them male “sex”, despite whatever gender they identify as.
You can change your gender but you can’t really choose your biological sex. But it’s semantics really and not totally flushed out yet either.