Of course it depends on the market but many of these "shortages" are only relative to record-high consumer demand for durable goods.
Yes, during periods of extremely high demand relative to current supply, profit for suppliers increases. This encourages new entrants to the market who can help boost supply.
This is just the basic functioning of the economy and price signals in action. If producing things in short supply weren't profitable, that short supply wouldn't get resolved.