In theory, you can. However, it is difficult to do. A jigsaw doesn’t provide accurate straight lines and is widely used for decorative works. I recommend using a circular saw for it. Still, if this is your only option, you can practice and make straight cuts.