It’s totally doable, as with all things in this industry the bulk of the work is proving you can already do it before someone employs you. Build some toy projects, learn how to use embedded Rust or C, maybe write some blog posts but at the very least have some code on GitHub you can point potential employers at.
You’re also going to have to get comfortable with some level of electronics, because it’s very rare someone wants embedded development done that doesn’t interact with the outside world in some way, and that’s going to require knowing how to drive some IO.