You can replace a patch of carpet as long as the fibers run the same way as the original piece. Also, remember to blend the seams using a carpet seam iron, like this TruePower model. You can also use seam adhesive to bond the strands to conceal the patch.