using smartphones SOC or other components as microcontroller like arduino
Technically possible, but infeasible and not recommended. Here's why.


Don't imagine for a minute that you're going to remove the SoC from the phone. It's attached rather permanently, and you wouldn't be able to fabricate a board to host it yourself anyway.
Because the SoC is installed in a phone, you have very little access to any GPIOs. If the phone has physical buttons or LEDs, you might be able to wire those as inputs or outputs, but that's much more limited than a general-purpose microcontroller. Then you run into…
Documentation. Or, more accurately, the lack of it. Most documentation for mobile phone SoCs is under NDA. You're unlikely to ever get access to it. Relatedly…
Most modern phones have a locked bootloader. You can't load your own OS without the vendor's signing key. If the device will boot to an OS, you might be able to load your code as a normal application, but…
Your phone is broken! How do you plan on loading software onto a phone that's stuck in a boot loop? For all you know, there may be a faulty component that would make it impossible to use for your own purposes anyway.


TL;DR: If you have to ask, the answer is "no".