Can I use automation script and pyaedt code at the same time?

Options

I wanna use automation script function and aedt function.
Can I use these function at the same time?