At least according to this randomised study.
https://www.theguardian.com/world/2024/jan/12/hydroxychloroquine-covid-increase-chance-death-trump
If you are not sick and you take this, it is probably safe - assuming the dose has been recommended by a doctor.
However, if you are sick and you are putting random drugs in your body - the effects can be unknown.