Such a small dermoid cyst is highly unlikely to cause difficulty in conception. A dermoid less than 3cm does not merit surgical removal. Also surgical removal can affect your ovarian reserve and hence fertility.
Next Steps
Get investigated for other reasons of infertility.
Health Tips
At your age if there is no other obvious cause; you have a great chance of conceiving. Stay healthy, be happy is the mantra!! All the best!