Yes. The entire point of attaching the Form 8949 submission is to facilitate reporting of capital gains when electronically filing a return.