In most regions it's legal, but some places prohibit anonymous calling. Check your local laws. Illegal harassment or fraud can still get you in trouble.