No, In most countries attacking someones server/s or private networks is illegal.
In my personal opinion people who DOS for no reason are scummy and are simply abusing the power that they hold.
Overall would not recommend but doing 1 or 2 attacks against someone's minecraft server wont cause any harm.