In theory yes. In practical terms, it's cheaper to ship it to India so you don't have to store it in the expensive landfill with all the regulations and staff that have maternity leave and dental care, where the plastic can be piled into artificial mountains with basically no landfill design principles applied.
In even more practical terms, garbage is not shipped to other countries. That's not something that happens.
Some recycling is bought by other countries, but they buy it to use it, not to stack it into artificial mountains.
This is not what happens though? At one point china accepted recycling waste, but not anymore, and trash has always been to landfills. The US has well run and regulated landfills with few problems.