The sentence is almost correct, but it could be refined for clarity and grammatical accuracy. A more polished version would be: "It's not my choice; it was just a result of my upbringing."
The meaning of this sentence is that the speaker is indicating that their current situation or behavior is not something they consciously chose. Instead, it is a consequence of their upbringing—how they were raised, including their environment, family