Yes, [Ты] моя хорошая. = You are my good (literally). "моя хорошая" describes "Ты" and requires corresponding gender. Grammatical gender depends on the grammatical relations in a sentence.