you have to check it by yourself the Acceptable ΔG (free energy required to break the structure): >-2 kcal/mol for 3’end hairpin; >-3 kcal/mol for internal hairpin;
It is advisable to use offline or online primer design and analysis program right in the begining of primer designing..many good progams will give you indication of all possible and undesirable interaction of the designed primers...
You can use oligo calculator software. It gives you the anneling temperature of the primer pairs along with their GC content. You can also get the detail for any self complementary structure formation like hairpin loops. Along with this it also gives you a direct link to BLAST in case you want to check whether the primer binds at the region of your interest.
I use http://www.idtdna.com/analyzer/applications/oligoanalyzer/
but you know what, sometimes I order primers that look perfect in silico but never work in reaction. On the other hand I checked some ancient primers that work perfectly and silico tolls show some awful things. So, I prefer to try out rather than reject based on silico prediction. Primers are inexpensive and there is always some Taq you can spare to try a new primer...
Use this tool: https://www.thermofisher.com/in/en/home/brands/thermo-scientific/molecular-biology/molecular-biology-learning-center/molecular-biology-resource-library/thermo-scientific-web-tools/multiple-primer-analyzer.html