Yes.
Click on Time Machine (TM) in the top menu bar. Then select "Open TM Preferences". Then Click on "Options". This opens a "window" which allows you to Exclude anything you don't want backed up. Provided you don't Exclude anything, TM will automatically back up your SSD and your IHD. If by any chance, either of these is shown, highlight and use the minus button to remove.
In most situations, certainly mine which is identical to yours, the default is to Exclude nothing = Include all HDs; SSD + IHD.
Leave TM to do its job.
Ian