1) yes ... if the design that you load on your card has dimensions of 18" in length by 12" in width, the board you load into the cnc should be at least 25" in length.
2) the cnc knows the project dimensions based on the design you upload to the machines card...