of course, just use simple math.
Just multiply your width and length by the dpi and thats how many pixels you want the image to be. Then render out the image and open it in photoshop and change the dpi to 300 with resampling off and it will be the size you want it to be.