Your only problem is that the carpet probably goes fully wall to wall, whereas the laminate requires about 1/2 inch (perhaps 1/4 inch) per side where it joins the vertical wall for expansion purposes, else it'll buckle duitng heat and cold extremes. This will, posssibly leave the carpet exposed in the resulting expansion space.
One could either live with it (it is kinda out of the way after all) or using a box cutter type razor bladed tool and a straight edge, simply cut a strip away around the perimeter...