Can you use cooked fish heads and bones in stock?
Nope, go ahead. I do it all the time, and in fact some stock recipes call for roasted bones. Just make sure to store the heads/bones safely to keep a nice taste between the original cooking and the stock-making.

If you season the fish heavily during the original cooking, it may influence the taste of the stock.