Cook wasn’t a great person but really the lions share of fault for the way colonisation occurred lies elsewhere.
The Proclamation of NSW Governor Richard Bourke in 1835 implemented the legal principle of terra nullius in Australian law as the basis for British settlement. This was 47 years after the arrival of the First Fleet
https://australian.museum/learn/first-nations/unsettled/recognising-invasions/terra-nullius/