definitely prewash the flannel before you do the quilting.
do your best to smooth it, but don't stress about that.
once you have it all done you will wash it again and run it through the dryer.
you will be pleased to see that most - or all - of the wrinkles are either gone or not noticeable.