I have a question
Is latin like some other languages where the ending is different depending on if it is female or male?
Better to say that adjectives obey the "rules" listed above: -a set for modifying feminine nouns, -us set for masculine nouns, -um set for neuter nouns.
But when it comes to nouns: realize that feminine nouns 'don't have to end in -a', for one thing (mater = mother; soror = sister; urbs = a city, fem. in Latin; etc.); and indeed some nouns that end in -a, if they refer to male human beings , are masculine: nauta = sailor; pirata = pirate; agricola = farmer; poeta = poet; Belga = a Belgian; and so on.