Is this legal with ptc in NJ ???

Is this legal while driving with a hat or something covering it making it “concealed” only when driving. Then transferring to a bag or iwb holster when getting out of car?

Is this legal while driving with a hat or something covering it making it “concealed” only when driving. Then transferring to a bag or iwb holster when getting out of car?