It is not illegal to receive a Pattern Day Trading flag on your account and it won't impact your taxes. You will not have any issues if you have more than $25k in your investment account with that broker.