Dynamic Memeory Allocation allocates lines in caches or not?-Collection of common programming errors

Using dynamic memory allocation at runtime in Linux allocates some memory in RAM. However, I want to know whether the cache lines are also allocated in the cache for that memory at the same time or not.

E.g, After I allocated some memory using malloc() and I store 4 bytes of data (cache line may be 4 or 16 Bytes) will the write miss occur on cache or not?