Yes, 8GB of RAM is not enough for After Effects. After Effects minimum requirements are now at 16GB of RAM, which should be fairly ok but it is really a minimum for any extensive work.
A lot depends on how you're going to use After Effects. For some simpler work you may be fine with 16GB of RAM M3.
... View more