Not really. Numba is great at optimizing numpy code but not necessarily other general Python code.