It depends on the portrayal in the particular fantasy world. Generally, wizards are seen as neutral or good, while warlocks are often portrayed as evil or associated with dark magic.