If i build a game using blueprint can I still package it for XBOX One and PS4?

For some reason I’ve got it in my head that if I wish to export a game to Xbox One or PS4 it needs to be coded entirely in C++ without Blueprint.

If everything I wish to achieve is possible with Blueprint, is it possible to export this to Xbox One and PS4?

I have recently come across something that said a PS4 game was made entirely with Blueprint, I wonder if this is true and if this is applicable to Xbox One as well?

Apologies if this is a duplicate post, but I have been searching for a few hours now and haven’t been able to find anything conclusive.

Thanks