No, that’s completely pointless. It would make sense to use:
// Note capital B
Boolean myFlag = Boolean.FALSE;
to avoid the call to Boolean.valueOf (autoboxing) but in your code there is no boxing, and their suggestion introduces an unnecessary unboxing operation.
As ever though, if someone suggests something and you don’t understand why, your first port of call should be asking them.