If a judge has an issued an order that restricts the use of any cannabinoids, then yes, you could be arrested and prosecuted for consuming Delta-8. This is most often the case if you have been released on bond or are on probation.