usb hub?

I haven’t tried it, but was wondering if using more than one Arduino for a model railroad layout, can they be connected to a usb hub for powering (with adapter) or programmed from one usb cable , would they be recognized as more than one selectable board in the Arduino IDE as a different port?
…??

Yes. Each Arduino will get its own port in the Arduino IDE when connected through a USB hub.