AI Attacking Behavior?

I just had a question about AI behavior, as I’ve heard a few different things. Will the AI ever attack another players stars? I’ve heard that it will only attack stars in range with no garrison, but I wanted to check before I try anything.

AI sends ships to grab any world that is unclaimed. The only way it would send ships at one of your worlds is if it dispatched the ships at the world BEFORE you claimed it.

That’s all I needed to know, thanks!