Should I install insulation between the rim joist and the top of foam insulation?
You can always spray foam over top edge of the wall layer of XPS, this ensures that there's no air leakage from behind the XPS on the wall going up.  I'd also make sure you caulk/tape all seams between XPS boards, and spray the bottoms/corners so it gets a real good seal from air movement.