Possibly. We still don’t know to what extent gender-affirming hormones such as estrogen and testosterone impact sperm and eggs.
If you are on estrogen and/or spironolactone: You will likely need to complete a semen analysis to see if you are currently producing sperm while on your hormones. Depending on these results you may need to come off your hormones prior to freezing sperm. In this case, your provider will recommend how long your time off hormones should be.
If you are taking testosterone: We don’t yet have the research to know if and for how long a person should be off testosterone prior to freezing their eggs. There are many proposed recommendations but no consensus at this time. 4-8 weeks is the most common recommendation, but your provider can help you decide what amount of time is best for you.