PI4 BTC node + USB mining

Is the PI4 performant enough to ack as BTC node and to solo (lotto) mine to this node at the same time with an USB SHA254 miner ?
Is it possible to set the PI4 up this way ( can it do both at the same time ?)