Qs on risk budgeting

My gambler’s fallacy tells me that the risk budgeting is due…but I still have some very basic questions on this topics.

1, Are risk budgeting and capital allocation used to manage market risk?

2, Risk budgeting does not deal with credit risk. Right?

Thanks in advance.