Only if you shoot first. Keep your safety to Green - that won’t stop you defending yourself, but will stop actions with criminal outcomes such as attacking other players or using certain weapons.
It’s all tied into the various timers that run for various actions.
https://wiki.eveuniversity.org/Safety_settings
https://wiki.eveuniversity.org/Timers