It's a bit ambiguous. Yoshi is usually referred to as male, but the games have never made it fully explicit, so the answer really depends on which source you go by.