Good evening..
yes if any infection, then chances are there that tubes will be blocked sometimes .. so it’s better go with HSG test , to see the patency of the tubes . As ur trying to conceive since 2 years and not working means better to get all investigations first and if everything is normal then go with tubes test.
Next Steps
-Follicular study , if eggs are forming or not
- if eggs are good then go with HSG test.