Yes, that’s correct. Comparing two literary works with similar themes is a common practice in literary criticism. It helps to analyze the similarities and differences between the works and to understand the themes more deeply.
If you are in need of any extra assistance, please reach out. I have many resources that can help you with future work and would be able to send those to you for reference. Hope to hear from you soon!