Next, take a look around your window frames on the ground level. There may be gaps where the frame meets the house siding. You can also use the spray foam to fill these in or use caulking. Look at the rest of the house and fill in cracks or crevices. If you have water valves on the outside, like for a garden hose, make sure the pipes that lead into the building are sealed also and make sure the garden hose isn’t leaking.
If cockroaches can’t get inside, then they will try to stay as close as possible to your home, their main food source. I suggest you replace your mulch, if you have any around your home with gravel.
Cockroaches tend to find harborage, or places to live, at the base of the home or basement but usually in crevices where they can physically feel a material on top of them. They like that snugly feeling I guess.
Check the area where you keep the garbage and recycling. Clean these areas frequently with bleach or ammonia or white vinegar.