Yes, you can still use a resignation letter template even if you're leaving under difficult circumstances. However, it's important to maintain a professional tone and avoid making any negative or inflammatory comments in the letter. Focus on expressing gratitude for the opportunities you've had with the company and providing a brief explanation for your departure.