When you specify pressure and area, CAESAR will calculate pressure thrust within the expansion joint, and causes it to grow accordingly. If your expansion joint has limitations on growth, i.e. it will fail if permitted to grow after X mm of growth, you need to add support to your pipe to prevent it from growing that far.
If instead, your expansion joint has tie rods, or some other self-limiting mechanism from growth, then you must model these, too.
CAESAR only sees expansion joints as spring elements that grow based on pressure and react to external stimuli. It is up to you to verify the EJ meets requirements, which there are a couple ways to do this check in CAESAR.