Yes that is only needed for ie8 and under and the usual way to include it was like so.
<!-- if using any html5 elements this file must be added for IE8 and under -->
<!--[if lt IE 9]>
However IE8 doesn't understand media queries either so you would also need to add media query support for that browser which can be done using respond.js
<!-- respond js for media query support in ie8 follows immediately after css files-->
The bigger question is whether it is worth putting all that junk in your html when there are very few browsers left that need it and indeed actively supporting insecure browsers should be discouraged.
I used to support all browsers but after the reason spate of 'ransomware' attacks which specifically target outdated and vulnerable browsers I no longer think it wise to support any browser that is no longer updated by its manufacturer.