Yes, you can take premises as taken to be "true" (assumptions taken as given) from which you are to derive the conclusion. So given the premise $\lnot B,$ any assertion $B$ would lead to a contradiction.
So in your example, given $A\lor B$, and given $\lnot B$, we appeal to the rule of inference called disjunctive syllogism to warrant (justify) the deduction$A$.
From the deduced $A$, we use addition to "add" $A \lor C$ (since if A is logically deduced from accepted premises, and thus taken as true, so must $A\lor C$ be inferred.
Then, by modus ponens with the first premise and the inferred $A\lor C$, we conclude $\therefore D$.