tl;dr Such questions can be on-topic, yes, but they aren't always, and they're not necessarily great fits for SO, as opposed to Programmers.
As explained in the help center:
if your question generally covers…
- a specific programming problem, or
- a software algorithm, or
- software tools commonly used by programmers; and is
- a practical, answerable problem that is unique to software development
… then you’re in the right place to ask your question!
Specific, focused questions about OOP patterns generally fall in the "specific programming problem" and "software algorithm" categories (and possibly the other categories, as well).
The questions you linked to are very different. The first involves a link to a somewhat vague and incomplete UML diagram—actually, more like an entity-relationship model—that provides relatively little information. The question itself boils down to "please identify this pattern or group of patterns." But as explained in the comments, there's not really an identifiable pattern, at all. The diagram shows how the data relates, but not how the program works.
The second question is much better. It provides code for a series of classes as a concrete example of the pattern(s) of interest to OP. It then asks which design pattern the code fits best.
Disclaimer: All that said, in my experience, such questions fit better, are received better, and get better answers on Programmers. YMMV.