I don't live in Bangkok, yet all my vehicles are registered there. With the exemption of one bike which is registered in Nakhon Sawan. I don't live there either, but they had the number I wanted at the time of registration.
Registration and Transfer is a centralized system and has been for some time,
Your trip to immigration is most likely to verify your change of address.