I would never accept a student’s use of Wikipedia as a source. However, it’s a great place to go initially to get to grips with a topic quickly. Then you can start to dig into different primary and secondary sources.
Chat GPT is the same. I would never use the content it makes without verifying that content first.