Has anyone ever dealt with their husband/SO being in rehab

We have a 17 month old son together. My husband is most likely going to be going to a rehab within the next couple of weeks. I'm not sure how long he will be there but I'm freaking out. Of course I want him to get help but I'm worried for my son. He's so young but he is sooooo smart. He will be so upset not seeing his father every day. I'm. Afraid my son will get mad at me for it and think I'm purposely keeping him away. Idk sorry I'm kind of ranting but would appreciate any advice