If you are using a free or a trial account for Midjourney, you are granted a Commons Noncommercial 4.0 Attribution International License, which means that you'd be able to use the images as long as you don't sell them or make money off them, and as long as you give credit (“attribution”) to Midjourney.