Making up for losses in non-halal stock

Assalamu alaikum,
Can I make up for the loss covered in investing in a non-halal stock as i had invested it prior to gaining knowledge about Halal stocks.

If I continue to hold the same non halal stock maybe I can cover my losses which I faced earlier with the same stock

Please advice

Jzk