Question regarding parameters

Do the attack and defense stats actually do anything if you change the damage formulas? For example, could I if I wanted to factor out defense entirely (or use for another purpose) and just increase hp instead for combat? Could I have the magic stat be used for offense and defense against magic attacks, maybe use magic defense to affect healing? I was just wondering if there was underlying code that still has these parameters naturally do things, like luck affects status ailments and agility affects turn order.
only stats that have a default function is AGI effecting turn order and LUK effecting state apply rate.
personally i like using plugin to remove LUK's effect on state rates
Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/question-regarding-parameters.130685/